<?php

/**
 * Description of Controller
 *
 * @author ervinne
 */
class Controller {

    public function load_model($model_name) {
        require dirname(__FILE__) . "/../models/{$model_name}.php";
        return new $model_name;
    }
 
    public function load_view($view, $data = []) {
        require dirname(__FILE__) . "/../views/{$view}.php";
    }
    
}
